package com.woniuxy.cloud.ticket52.movieassembly.service.impl;

import com.woniuxy.cloud.ticket52.movieassembly.model.Comment;
import com.woniuxy.cloud.ticket52.movieassembly.dao.CommentMapper;
import com.woniuxy.cloud.ticket52.movieassembly.service.ICommentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 电影评论 服务实现类
 * </p>
 *
 * @author rc
 * @since 2021-05-06
 */
@Service
public class CommentServiceImpl extends ServiceImpl<CommentMapper, Comment> implements ICommentService {

    @Autowired
    private CommentMapper mapper;

    @Override
    public Comment findByMid(int movie_id) {
        return mapper.findByMid(movie_id);
    }
}
